package com.lee.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * 自定义配置类
 * @author LiPengFei
 *
 */
@Component
@ConfigurationProperties(prefix="lee")
public class LeeConfig {
	/**
	 * 项目名称
	 */
	private String name;
	/**
	 * 版本
	 */
	private String version;
	/**
	 * 上传图片路径
	 */
	private static String profile="D:/file/";
	/**
	 * 上传图片大小
	 */
	private static long defaultMaxSize=52428800L;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public static String getProfile() {
		return profile;
	}
	public void setProfile(String profile) {
		LeeConfig.profile = profile;
	}
	public static long getDefaultMaxSize() {
		return defaultMaxSize;
	}
	public void setDefaultMaxSize(long defaultMaxSize) {
		LeeConfig.defaultMaxSize = defaultMaxSize;
	}
	
}
